package com.social.serviceImpl;

import com.social.dao.PostOrganizationMapper;
import com.social.pojo.PostOrganization;
import com.social.service.PostOrganizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class PostOrganizationImpl implements PostOrganizationService {
    @Autowired
    private PostOrganizationMapper postOrganizationMapper;

    @Override
    public PostOrganization selectById(Integer id) {
        PostOrganization postOrganization = postOrganizationMapper.selectById(id);
        return postOrganization;
    }

    @Override
    public int insert(PostOrganization postOrganization) {
        int status = postOrganizationMapper.insert(postOrganization);
        return status;
    }
}
